#include "graphicsscene.h"
#include <QtWidgets>
#include <QDebug>
#include "times.h"
#include <QThread>

GraphicsScene *gSence = NULL;
GraphicsScene::GraphicsScene(QObject *parent)
	: QGraphicsScene(parent)
{
	gSence = this;
}

GraphicsScene::~GraphicsScene()
{

}

// drag & drop;
void GraphicsScene::dragMoveEvent(QGraphicsSceneDragDropEvent *event)
{
//	event->accept();
	QGraphicsScene::dragMoveEvent(event);
}
void GraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
	Times::outCurrentTime("scene");
	qDebug() << "->GraphicsScene.mousePressEvent() enter."
		<<"("<<event->pos().x()<<","<<event->pos().y()<<")";
	QThread::usleep(1);


	QGraphicsScene::mousePressEvent(event);
}